package com.atguigu.gmall.cart;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.cart.CartInfo;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author: 封捷
 * @create-date: 2022/9/6 14:44
 */
@Component
public class CartFeignDegradeClient implements CartFeignClient {
    @Override
    public Result<Void> addToCart(Long skuId, Integer skuNum) {
        return Result.<Void>fail().message("服务降级了。");
    }

    @Override
    public Result<List<CartInfo>> getCheckedCartList(String userId) {
        return Result.<List<CartInfo>>fail().message("服务降级了。");
    }

    @Override
    public Result<Void> getCartListFromDBToCache(String userId) {
        return Result.<Void>fail().message("服务降级了。");
    }

    @Override
    public Result<Void> clearCheckedCartItem(String userId) {
        return Result.<Void>fail().message("服务降级了。");
    }
}
